package jt.classic.system.tablequery.init;

import jt.classic.system.ISystemException;
import jt.classic.system.init.AbstractInitializtion;
import jt.classic.system.tablequery.TableQueryCenter;
import jt.classic.system.tablequery.TableQueryTimer;


/**
 * 表查询注册中心启动加载
 * @author mido
 *
 */
public class TableQueryInitializtion extends AbstractInitializtion {
    TableQueryTimer tqt = new TableQueryTimer(30000, -1);

    public void load() throws ISystemException {
        TableQueryCenter register = TableQueryCenter.getInstance();

        register.init();

        System.err.println("system message: table-query is OK.");

        tqt.runTask();
    }

    public void release() throws ISystemException {
        tqt.stopTask();
    }
}
